package com.htzg.wardemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * http://localhost:8082/wardemo/
 */

@Slf4j
@Controller
public class ViewController {


    @RequestMapping("/")
    public ModelAndView index() {
        ModelAndView mv = new ModelAndView();
        mv.addObject("remoteUser", "admin");
        mv.setViewName("index");
        return mv;
    }

}

